package com.example.mianshi;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Temp {

	public static  void test(){
		List lst = new ArrayList();
		Map map = new HashMap(100);
		for(int i=0;i<100;i++){
			System.out.println(i);
			map.put(i,i+"abc");
		}
	}


	@Override
	protected void finalize() throws Throwable {
		 System.out.println("......................被垃圾回收了.......................");
		 super.finalize();
	}
	
	
	public static void main(String[] args) {
		 
		/*int capacity = 1;
		int count = 0;
		 while (capacity < 120){
			 capacity <<= 1;
			 System.out.println(++count+"---->");
			 System.out.println(capacity+"...............");
		 }
	            */
		String str = new String("abc").intern();
	   test();
	}
	
	
	
	
	
}
